﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Liju.Model
{
    /// <summary>
    /// 产品任务测试记录
    /// </summary>
    public class ProductTaskRecord
    {
        /// <summary>
        /// 产品任务测试记录ID
        /// </summary>
        public long ProductTaskRecordID { get; set; }

        /// <summary>
        /// 产品测试记录ID
        /// </summary>
        public long ProductRecordID { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 产品条码
        /// </summary>
        public string ProductSN { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        public Int64 TaskID { get; set; }

        /// <summary>
        /// 当前任务号 第几个螺钉 从1开始
        /// </summary>
        public int WorkNo { get; set; }

        /// <summary>
        /// 任务所在图片序号
        /// </summary>
        public int TaskImgNo { get; set; }

        /// <summary>
        /// 执行结果 0未执行 1 Pass 2 NG 3执行中 4品质判定PASS 5品质判定NG 6品质判定重做
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 电批参数号
        /// </summary>
        public int ScrewDriverParam { get; set; }

        /// <summary>
        /// 电批位置
        /// </summary>
        public string ScrewLocation { get; set; }

        /// <summary>
        /// 执行电批位置
        /// </summary>
        public string ScrewLocationReal { get; set; }

        /// <summary>
        /// 套筒型号
        /// </summary>
        public int SleeveModel { get; set; }

        /// <summary>
        /// 螺丝型号
        /// </summary>
        public int ScrewModel { get; set; }

        /// <summary>
        /// 使用螺丝数量 多次送螺丝
        /// </summary>
        public int ScrewNum { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        public string GongHao { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 是否预拧 0非预拧 1预拧
        /// </summary>
        public int TightenPrepare { get; set; }

        /// <summary>
        /// 螺丝参数设定值 防止参数修改 目标扭矩
        /// </summary>
        public string TaskPama1 { get; set; }

        /// <summary>
        /// 作业时 实际扭矩
        /// </summary>
        public string TaskPamaReal1 { get; set; }

        /// <summary>
        /// 螺丝参数设定值 防止参数修改 目标角度
        /// </summary>
        public string TaskPama2 { get; set; }

        /// <summary>
        /// 作业时 实际角度
        /// </summary>
        public string TaskPamaReal2 { get; set; }

        /// <summary>
        /// 螺丝参数设定值 防止参数修改 浮高
        /// </summary>
        public string TaskPama3 { get; set; }

        /// <summary>
        /// 作业时 实际浮高
        /// </summary>
        public string TaskPamaReal3 { get; set; }

        /// <summary>
        /// NG类型
        /// </summary>
        public string NGType { get; set; }

        /// <summary>
        /// NG备注
        /// </summary>
        public string NGReMark { get; set; }

        /// <summary>
        /// NG判定人工号
        /// </summary>
        public string NGJudgeGongHao { get; set; }

        /// <summary>
        /// NG判定人姓名
        /// </summary>
        public string NGJudgeUserName { get; set; }

        /// <summary>
        /// NG判定时间
        /// </summary>
        public DateTime NGJudgeTime { get; set; }



    }
}
